package main

import (
	"Sales_system/Dao"
	setting "Sales_system/pkg/setting"
	"Sales_system/routers"
	"fmt"
)

func init()  {
	setting.Setup()
	Dao.Setup()
}


func main()  {

	endPoint := fmt.Sprintf(":%d", setting.ServerSetting.HttpPort)
	routersInit := routers.InitRouter()
	routersInit.Run(endPoint)



}